/**
 * 获取眼砂列表
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetEyeList(callback, loading) {
    var url = $.domain + "/Setting/doGetEyeList";
    sApi(url, {}, callback, loading);
}


/**
 * 获取颜色列表
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetColorList(callback, loading) {
    var url = $.domain + "/Setting/doGetColorList";
    sApi(url, {}, callback, loading);
}


/**
 * 添加眼睛
 * @param {type} type
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doAddEye(type, callback, loading) {
    var data = {
        "type": type
    }
    var url = $.domain + "/Setting/doAddEye";
    sApi(url, data, callback, loading);
}

/**
 * 添加颜色
 * @param {type} type
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doAddColor(type, callback, loading) {
    var data = {
        "type": type
    }
    var url = $.domain + "/Setting/doAddColor";
    sApi(url, data, callback, loading);
}


/**
 * 编辑眼砂
 * @param {type} id
 * @param {type} type
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doEditEye(id, type, callback, loading) {
    var data = {
        "id": id,
        "type": type
    }
    var url = $.domain + "/Setting/doEditEye";
    sApi(url, data, callback, loading);
}

/**
 * 编辑颜色
 * @param {type} id
 * @param {type} type
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doEditColor(id, type, callback, loading) {
    var data = {
        "id": id,
        "type": type
    }
    var url = $.domain + "/Setting/doEditColor";
    sApi(url, data, callback, loading);
}

/**
 * 删除眼睛
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doDelEye(id, callback, loading) {
    var data = {
        "id": id
    }
    var url = $.domain + "/Setting/doDelEye";
    sApi(url, data, callback, loading);
}

/**
 * 删除颜色
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doDelColor(id, callback, loading) {
    var data = {
        "id": id
    }
    var url = $.domain + "/Setting/doDelColor";
    sApi(url, data, callback, loading);
}

/**
 * 编辑系统信息
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doEditSysInfo(data, callback, loading) {
    var url = $.domain + "/Setting/doEditSysInfo";
    sApi(url, data, callback, loading);
}

/**
 * 备份数据库
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doBackups(callback, loading) {
    var url = $.domain + "/Setting/doBackups";
    sApi(url, {}, callback, loading);
}